.class Lcom/estrongs/android/ui/dialog/j$d;
.super Ljava/lang/Object;
.source "AssociateAppDialog.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/estrongs/android/ui/dialog/j;->b()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/estrongs/android/ui/dialog/j;


# direct methods
.method constructor <init>(Lcom/estrongs/android/ui/dialog/j;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/ui/dialog/j$d;->a:Lcom/estrongs/android/ui/dialog/j;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 6

    .line 1
    invoke-static {}, Les/mg;->f()Les/mg;

    move-result-object v0

    iget-object v1, p0, Lcom/estrongs/android/ui/dialog/j$d;->a:Lcom/estrongs/android/ui/dialog/j;

    iget-object v1, v1, Lcom/estrongs/android/ui/dialog/j;->f:Lcom/estrongs/fs/g;

    invoke-virtual {v0, v1}, Les/mg;->d(Lcom/estrongs/fs/g;)Les/mg$k;

    move-result-object v0

    const/4 v1, 0x0

    if-eqz v0, :cond_0

    .line 2
    iget-object v0, v0, Les/mg$k;->a:Ljava/lang/String;

    goto :goto_0

    :cond_0
    move-object v0, v1

    .line 3
    :goto_0
    invoke-static {}, Les/mg;->f()Les/mg;

    move-result-object v2

    iget-object v3, p0, Lcom/estrongs/android/ui/dialog/j$d;->a:Lcom/estrongs/android/ui/dialog/j;

    iget-object v3, v3, Lcom/estrongs/android/ui/dialog/j;->f:Lcom/estrongs/fs/g;

    invoke-virtual {v2, v3}, Les/mg;->e(Lcom/estrongs/fs/g;)Les/mg$q;

    move-result-object v2

    .line 4
    new-instance v3, Ljava/util/ArrayList;

    invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V

    .line 5
    sput-object v0, Lcom/estrongs/android/ui/dialog/j$f;->f:Ljava/lang/String;

    if-nez v2, :cond_1

    move-object v0, v1

    goto :goto_1

    .line 6
    :cond_1
    iget-object v0, v2, Les/mg$q;->a:Ljava/lang/String;

    :goto_1
    sput-object v0, Lcom/estrongs/android/ui/dialog/j$f;->g:Ljava/lang/String;

    .line 7
    invoke-interface {v3, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 8
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/j$d;->a:Lcom/estrongs/android/ui/dialog/j;

    iget-object v0, v0, Lcom/estrongs/android/ui/dialog/j;->d:Landroid/content/Context;

    invoke-virtual {v0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v0

    const/16 v1, 0x2000

    .line 9
    invoke-static {v1}, Lcom/estrongs/android/pop/FexApplication;->a(I)Ljava/util/List;

    move-result-object v1

    .line 10
    invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_2
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v4

    if-eqz v4, :cond_2

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Landroid/content/pm/ApplicationInfo;

    .line 11
    invoke-static {v0, v4}, Lcom/estrongs/android/ui/dialog/j$f;->a(Landroid/content/pm/PackageManager;Landroid/content/pm/ApplicationInfo;)Lcom/estrongs/android/ui/dialog/j$f;

    move-result-object v4

    invoke-interface {v3, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_2

    .line 12
    :cond_2
    invoke-static {v3}, Ljava/util/Collections;->sort(Ljava/util/List;)V

    .line 13
    invoke-interface {v3}, Ljava/util/List;->size()I

    move-result v0

    const/4 v1, 0x0

    const/4 v4, 0x0

    :goto_3
    if-ge v4, v0, :cond_4

    .line 14
    invoke-interface {v3, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Lcom/estrongs/android/ui/dialog/j$f;

    if-eqz v5, :cond_3

    .line 15
    iget-boolean v5, v5, Lcom/estrongs/android/ui/dialog/j$f;->c:Z

    if-eqz v5, :cond_3

    move v1, v4

    goto :goto_4

    :cond_3
    add-int/lit8 v4, v4, 0x1

    goto :goto_3

    .line 16
    :cond_4
    :goto_4
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/j$d;->a:Lcom/estrongs/android/ui/dialog/j;

    iget-object v0, v0, Lcom/estrongs/android/ui/dialog/j;->a:Landroid/os/Handler;

    new-instance v4, Lcom/estrongs/android/ui/dialog/j$d$a;

    invoke-direct {v4, p0, v3, v2, v1}, Lcom/estrongs/android/ui/dialog/j$d$a;-><init>(Lcom/estrongs/android/ui/dialog/j$d;Ljava/util/List;Les/mg$q;I)V

    invoke-virtual {v0, v4}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    return-void
.end method
